package com.example.springbootserve.mapper;

import com.example.springbootserve.controller.Request.BaseRquest;
import com.example.springbootserve.controller.Request.PasswordRequest;
import com.example.springbootserve.entity.Admin;
import com.example.springbootserve.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    List<Book> list();

    List<Book> listByCondition(BaseRquest baseRquest);

    void save(Book obj);

    Book getById(Integer id);

    void updateById(Book obj);

    void deleteById(Integer id);

    Book gerByNo(String bookNo);

    void updateNumByNo(String bookNo);
}
